import request from '@/utils/request'

// 查询任务列表数据
export function selectTaskList() {
  return request({
    url: '/zndd/page/home/taskList',
    method: 'get'
  })
}

// 获取生产任务调度数据
export function selectSolutionList() {
  return request({
    url: '/zndd/page/home/solutions',
    method: 'get'
  })
}

// 获取产线数据及绑定的设备信息
export function getLineData() {
  return request({
    url: '/zndd/page/home/lines',
    method: 'get'
  })
}

// 获取工单信息
export function getWorkOrderData() {
  return request({
    url: '/zndd/page/home/orderList',
    method: 'get'
  })
}

// 获取任务进度接口 @shy 2025.5.12
export function getTaskProgress() {
  return request({
    url: '/zndd/homePage/getTaskProgress',
    method: 'get'
  })
}

// 获取焊缝信息接口 @shy 2025.5.12
export function getProcessInfo() {
  return request({
    url: '/zndd/homePage/getProcessInfo',
    method: 'get'
  })
}

// 获取拉动信息接口 @shy 2025.5.12
export function getPullInfo() {
  return request({
    url: '/zndd/homePage/getPullInfo',
    method: 'get'
  })
}

// 获取拉动信息接口 @shy 2025.5.12
export function manualFinish(data) {
  return request({
    url: '/zndd/receiveplc/plcreceivetaskstate',
    data: data,
    method: 'post'
  })
}

// 测试一键完成拉动
export function manualAlllFinish(data) {
  return request({
    url: '/zndd/receiveplc/all/plcreceivetaskstate',
    data: data,
    method: 'post'
  })
}
// 获取发送焊缝信息状态 for test only @shy 2025.5.29
export function getSendWeldSeamVoInfo(data) {
  return request({
    url: '/zndd/homePage/getSendWeldSeamVoInfo',
    data: data,
    method: 'get'
  })
}

// 获取发送拉动状态 for test only @shy 2025.5.29
export function getSendPlcStatusInfo(data) {
  return request({
    url: '/zndd/homePage/getSendPlcStatusInfo',
    data: data,
    method: 'get'
  })
}

// 测试手动调度 for test only @shy 2025.6.8
export function dispatchSeam(data) {
  return request({
    url: '/zndd/homePage/sendWeldSeam',
    data: data,
    method: 'get'
  })
}

// 测试手动拉动 for test only @shy 2025.6.8
export function manualPull(data) {
  return request({
    url: '/zndd/homePage/sendPullPlcInstructions',
    data: data,
    method: 'post'
  })
}

// 测试手动拉动 for test only @shy 2025.6.8
export function ctlListen(data) {
  return request({
    url: '/zndd/homePage/ctlListen',
    data: data,
    method: 'post'
  })
}
